﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InvestmentIntelligence.DbModel.Models;
using InvestmentIntelligence.Extensions;

namespace InvestmentIntelligence.Data.Repository.EFImplementation
{
    public class UnderlyingReplacementRepository : IIPRepository<UnderlyingReplacement>, IUnderlyingReplacementRepository
    {
        public Dictionary<int, int> GetPairDictionary()
        {
            var pairList= GetList();
            return pairList.ToDictionaryFast(t => t.Source, t => t.Destination);
        }
    }
}
